package cn.leonis.consumer01.pojo;

import java.util.List;

public class Order {

    private Integer orderId;

    private String customerName;

    private List<Product> productList;

    public Order() {
    }

    public Order(Integer orderId, String customerName, List<Product> productList) {
        this.orderId = orderId;
        this.customerName = customerName;
        this.productList = productList;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", customerName='" + customerName + '\'' +
                ", productList=" + productList +
                '}';
    }
}
